package mqtt;

import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.visualizers.gui.AbstractListenerGui;

import java.awt.*;

public class MqttSummaryGUI extends AbstractListenerGui {

	private static final long serialVersionUID = 1L;

	public MqttSummaryGUI() {
		super();
		init();
	}

	private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or
		// final)
		setLayout(new BorderLayout());
		setBorder(makeBorder());

		add(makeTitlePanel(), BorderLayout.NORTH);
	}

	@Override
	public TestElement createTestElement() {

		MqttSummary summariser = new MqttSummary();
		modifyTestElement(summariser);
		return summariser;
	}

	@Override
	public String getLabelResource() {

		return "MQTT采样数据收集器（KafKa）_之前测试专用";
	}

	@Override
	public String getStaticLabel() {

		return "MQTT采样数据收集器（KafKa）_之前测试专用";
	}

	@Override
	public void modifyTestElement(TestElement element) {

		super.configureTestElement(element);
	}

}
